<header class="header">
    <div class="logo">
        <h1><a href="/">
            <img src="<?php echo Yii::app()->theme->baseUrl?>/frontend/images/logo.png">
        </a></h1>
    </div>
    <!--end logo-->
    <nav class="main-menu">
        <ul>
            <li><a href="/">Home</a></li>
            <li><a href="javascript:void(0);" id="post">Post a Yard Sale</a></li>
            <li><a href="find-yard-sale.html">Find a Yard Sale</a></li>
            <li><a href="tips.html">Tips</a></li>
        </ul>
    </nav>
    <!--end nav-->
    <div class="signup">
        <ul>
            <?php
            if(isset(Yii::app()->session['_LOGGED_USER'])):
                $user = Yii::app()->session['_LOGGED_USER'];?>
                <li class="username"><a href="<?=Yii::app()->baseUrl?>/profile.html">Hi, <?php echo $user['first_name'] .' ' . $user['last_name']?></a></li>
                <li class="message"><span class="number">1</span></li>
            <?php
            else:?>
                <li><a href="javascript:void(0);" id="register"><img src="<?php echo Yii::app()->theme->baseUrl?>/frontend/images/btn-signup.png"></a></li>
                <li class="login"><a href="javascript:void(0);" id="login"><img src="<?php echo Yii::app()->theme->baseUrl?>/frontend/images/btn-login.png"></a></li>
            <?php 
            endif;?>
        </ul>
    </div>
</header>
<div class="line"></div>